<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link href="/resouse/css/css.css" rel="stylesheet">
</head>
<body>
	<center>
		<h1>添加/修改</h1>
		<form:form action="add" method="post" modelAttribute="talents" >
			姓名:<form:input path="taname"/>
				<form:errors path="taname"  cssStyle="color:red"></form:errors><br><br>
			生日:<form:input type="date" path="birthday"/>
				<form:errors path="birthday"  cssStyle="color:red"></form:errors><br><br>
			性别:<c:forEach items="${talentsEnums}" var="enu">
					<form:radiobutton path="gender" value="${enu}"/>${enu.name}
			</c:forEach>
			<form:errors path="gender" cssStyle="color:red"></form:errors><br><br>
			电话:<form:input path="phone"/>
				<form:errors path="phone"  cssStyle="color:red"></form:errors><br><br>
			擅长专业:<form:input path="specialty"/>
				<form:errors path="specialty"  cssStyle="color:red"></form:errors><br><br>
			所属单位:<form:input path="institution"/>
				<form:errors path="institution"  cssStyle="color:red"></form:errors><br><br>
			职称:<c:forEach items="${title}" var="tit">
					<form:checkbox path="tids" value="${tit.tid}"/>${tit.name}
			</c:forEach>
			<form:errors path="tids" cssStyle="color:red"></form:errors><br><br>
			<form:button>保存</form:button>
		</form:form>
	</center>
</body>
</html>








